package com.hz.ruoyistorage.api;

import com.hz.ruoyistorage.mapper.LgColdStorageMapper;
import com.hz.ruoyistorage.service.LgSubColdService;
import com.hz.ruoyistorage.utils.ResultJSON;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author gj
 * @Date 2025/3/8 14:48
 * @注释
 */
//给田家辉的api
@RestController
@RequestMapping("/api2")
public class ColdStorageApi {
    @Autowired
    private LgColdStorageMapper lgColdStorageMapper;

    @GetMapping("/getColdSome")
    public ResultJSON getColdSome(Integer firstNum,Integer secondNum)
    {
        firstNum = (firstNum-1)*secondNum;
        return ResultJSON.success(lgColdStorageMapper.getReallyList(null,null,null,null,null,null,null,null,null,firstNum,secondNum,null));
    }

    @GetMapping("/getColdCount")
    public ResultJSON getColdCount()
    {
        return ResultJSON.success(lgColdStorageMapper.getCount(null,null,null,null,null,null,null,null,null,null));
    }
}
